#include<bits/stdc++.h>
using namespace std;

main() {
	int a,b;
	cin>>a>>b;
	if(a>b) {
		int t=a;
		a=b;
		b=t;
	}

	printf("%d %d\n",a,b);



}
